<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

require_once(APPPATH . '/controllers/super_admin' . EXT);

class Admin extends Super_admin {

	function __construct()
	{
		parent::__construct();

                $this->load->model(array(
                    'User_model'
                ));

		$this->load->helper(array(
			'date',
			'file',
			'form',
			'html',
			'language',
		));
	}

	public function index()
	{
           $access = array('admin'); //admin only
           $this->_is_authorize($access); //check super_admin controller

           return redirect('admin/home');

	}
        
	public function home()
	{
           $access = array('admin'); //admin only
           $this->_is_authorize($access); //check super_admin controller

           $data['fullname'] = $this->User_model->get_fullname();

           $this->load->view('admin/home', $data);
           
	}
        
	public function profile()
	{
           redirect('profile');
           
	}

}

/* End of file user.php */
/* Location: ./application/controllers/user.php */